package com.sky.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//前缀代码量少的情况下用@Value注解，多的话可以将封装成一个类@ConfigurationProperties
@Data
@Component
@ConfigurationProperties(prefix = "aliyun.oss") //获取配置文件中的aliyun.oss
public class AliyunConfigProperties {
    private String endpoint;
    private String bucketName;
}
